package com.kaifa.test;

public class WorkDemo2 {
    public static void main(String[] args) {


        for(int y = 1;y<=9;y++){
            for(int x=1;x<=y;x++){
                if(x==y){
                    System.out.print(x+"*"+y+"="+x*y);
                }else{
                    System.out.print(x+"*"+y+"="+x*y+",");
                }
            }
            System.out.println();
        }


    }
}
